package com.hailian.fintech.hlrenting_houseserver.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hailian.fintech.hlrenting_houseserver.entity.Lease;
import com.hailian.fintech.hlrenting_houseserver.entity.LeaseVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author wyt
 * @since 2020-05-21
 */
public interface LeaseMapper extends BaseMapper<Lease> {

    /***
     * 根据租客外键查询租约信息
     * @return
     */
    public List<LeaseVo> leaseList(@Param("tenantId") Integer tenantId);
}
